import Store from 'electron-store'

const config: ApplicationStoreConfig = {
    common: {
        exclude: ['node_modules', 'dist', '*.+(css|scss)', 'assets', 'i18n'],
    },
    baidu: {
        appid: '',
        secret: ''
    }
}


export default function initPreferences(store: Store<ApplicationYamlConfig>){
    if(store.get('install')) return
    store.set('install', Date.now())
    store.set('config', config)
}